Integrand size = 35, antiderivative size = 159 \[ \int \frac {A+B \tan (c+d x)}{\tan ^{\frac {3}{2}}(c+d x) \sqrt {a+b \tan (c+d x)}} \, dx=-\frac {(i A-B) \arctan \left (\frac {\sqrt {i a-b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{\sqrt {i a-b} d}+\frac {(i A+B) \text {arctanh}\left (\frac {\sqrt {i a+b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{\sqrt {i a+b} d}-\frac {2 A \sqrt {a+b \tan (c+d x)}}{a d \sqrt {\tan (c+d x)}} \]
[Out]
Time = 0.83 (sec) , antiderivative size = 159, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.171, Rules used = {3690, 3697, 3696, 95, 209, 212} \[ \int \frac {A+B \tan (c+d x)}{\tan ^{\frac {3}{2}}(c+d x) \sqrt {a+b \tan (c+d x)}} \, dx=-\frac {(-B+i A) \arctan \left (\frac {\sqrt {-b+i a} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{d \sqrt {-b+i a}}+\frac {(B+i A) \text {arctanh}\left (\frac {\sqrt {b+i a} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{d \sqrt {b+i a}}-\frac {2 A \sqrt {a+b \tan (c+d x)}}{a d \sqrt {\tan (c+d x)}} \]
[In]
[Out]
Rule 95
Rule 209
Rule 212
Rule 3690
Rule 3696
Rule 3697
Rubi steps \begin{align*} \text {integral}& = -\frac {2 A \sqrt {a+b \tan (c+d x)}}{a d \sqrt {\tan (c+d x)}}-\frac {2 \int \frac {-\frac {a B}{2}+\frac {1}{2} a A \tan (c+d x)}{\sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)}} \, dx}{a} \\ & = -\frac {2 A \sqrt {a+b \tan (c+d x)}}{a d \sqrt {\tan (c+d x)}}-\frac {1}{2} (-i A-B) \int \frac {1+i \tan (c+d x)}{\sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)}} \, dx-\frac {1}{2} (i A-B) \int \frac {1-i \tan (c+d x)}{\sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)}} \, dx \\ & = -\frac {2 A \sqrt {a+b \tan (c+d x)}}{a d \sqrt {\tan (c+d x)}}-\frac {(i A-B) \text {Subst}\left (\int \frac {1}{(1+i x) \sqrt {x} \sqrt {a+b x}} \, dx,x,\tan (c+d x)\right )}{2 d}+\frac {(i A+B) \text {Subst}\left (\int \frac {1}{(1-i x) \sqrt {x} \sqrt {a+b x}} \, dx,x,\tan (c+d x)\right )}{2 d} \\ & = -\frac {2 A \sqrt {a+b \tan (c+d x)}}{a d \sqrt {\tan (c+d x)}}-\frac {(i A-B) \text {Subst}\left (\int \frac {1}{1-(-i a+b) x^2} \, dx,x,\frac {\sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{d}+\frac {(i A+B) \text {Subst}\left (\int \frac {1}{1-(i a+b) x^2} \, dx,x,\frac {\sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{d} \\ & = -\frac {(i A-B) \arctan \left (\frac {\sqrt {i a-b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{\sqrt {i a-b} d}+\frac {(i A+B) \text {arctanh}\left (\frac {\sqrt {i a+b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{\sqrt {i a+b} d}-\frac {2 A \sqrt {a+b \tan (c+d x)}}{a d \sqrt {\tan (c+d x)}} \\ \end{align*}
Time = 0.55 (sec) , antiderivative size = 172, normalized size of antiderivative = 1.08 \[ \int \frac {A+B \tan (c+d x)}{\tan ^{\frac {3}{2}}(c+d x) \sqrt {a+b \tan (c+d x)}} \, dx=\frac {\frac {\sqrt [4]{-1} (A-i B) \arctan \left (\frac {\sqrt [4]{-1} \sqrt {-a+i b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{\sqrt {-a+i b}}-\frac {\sqrt [4]{-1} (A+i B) \arctan \left (\frac {\sqrt [4]{-1} \sqrt {a+i b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{\sqrt {a+i b}}-\frac {2 A \sqrt {a+b \tan (c+d x)}}{a \sqrt {\tan (c+d x)}}}{d} \]
[In]
[Out]
result has leaf size over 500,000. Avoiding possible recursion issues.
Time = 0.92 (sec) , antiderivative size = 1886236, normalized size of antiderivative = 11863.12
\[\text {output too large to display}\]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 10036 vs. \(2 (124) = 248\).
Time = 2.98 (sec) , antiderivative size = 10036, normalized size of antiderivative = 63.12 \[ \int \frac {A+B \tan (c+d x)}{\tan ^{\frac {3}{2}}(c+d x) \sqrt {a+b \tan (c+d x)}} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {A+B \tan (c+d x)}{\tan ^{\frac {3}{2}}(c+d x) \sqrt {a+b \tan (c+d x)}} \, dx=\int \frac {A + B \tan {\left (c + d x \right )}}{\sqrt {a + b \tan {\left (c + d x \right )}} \tan ^{\frac {3}{2}}{\left (c + d x \right )}}\, dx \]
[In]
[Out]
\[ \int \frac {A+B \tan (c+d x)}{\tan ^{\frac {3}{2}}(c+d x) \sqrt {a+b \tan (c+d x)}} \, dx=\int { \frac {B \tan \left (d x + c\right ) + A}{\sqrt {b \tan \left (d x + c\right ) + a} \tan \left (d x + c\right )^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {A+B \tan (c+d x)}{\tan ^{\frac {3}{2}}(c+d x) \sqrt {a+b \tan (c+d x)}} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \frac {A+B \tan (c+d x)}{\tan ^{\frac {3}{2}}(c+d x) \sqrt {a+b \tan (c+d x)}} \, dx=\int \frac {A+B\,\mathrm {tan}\left (c+d\,x\right )}{{\mathrm {tan}\left (c+d\,x\right )}^{3/2}\,\sqrt {a+b\,\mathrm {tan}\left (c+d\,x\right )}} \,d x \]
[In]
[Out]